/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Test.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/27 下午8:59
 * LastModified: 2020/03/27 20:59:27
 */

package com.qolome.knowledge.design.pattern.observer.demo.guava;

import com.qolome.knowledge.design.pattern.interpreter.calculator.QolomeCalculator;
import com.google.common.eventbus.EventBus;

/**
 * @author Qolome
 * @version V1.0
 * @Description 测试类
 * @date 2020年 03月27日 20:59:18
 */
public class Test {

    public static void main(String[] args) {
        EventBus eventBus = new EventBus();
        eventBus.register(new GuavaSubscribe());
        eventBus.register(new UserEventSubscribe());
        eventBus.post("爱死你了");
        eventBus.post(new Pojo("柳大华","北京东华集团"));
        eventBus.post(User.builder()
                .name("张三")
                .tel("15535251566")
                .userId("00012255")
                .build());
    }
}
